package com.sise.bl.entity;

import org.springframework.stereotype.Component;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 对应数据库订单项
 */
@Component
public class Item implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer iid;
    private BigDecimal icount;
    private int inum;
    private Product product;
    private Orders orders;

    public Item() {
    }

    public Integer getIid() {
        return iid;
    }

    public void setIid(Integer iid) {
        this.iid = iid;
    }

    public BigDecimal getIcount() {
        return icount;
    }

    public void setIcount(BigDecimal icount) {
        this.icount = icount;
    }

    public int getInum() {
        return inum;
    }

    public void setInum(int inum) {
        this.inum = inum;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Orders getOrders() {
        return orders;
    }

    public void setOrders(Orders orders) {
        this.orders = orders;
    }

    @Override
    public String toString() {
        return "Item{" +
                "iid=" + iid +
                ", icount=" + icount +
                ", inum=" + inum +
                ", product=" + product +
                ", orders=" + orders +
                '}';
    }
}
